package com.mp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mp.beans.User;
import com.mp.dao.IUserDao;

@Service
@Transactional
public class UserService {

	@Autowired
	private IUserDao userMapper;

	public List<User> searchAll() {
		List<User> list = userMapper.findAll();
		return list;
	}
}